package com.yogurt.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yogurt.edu.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yogurt.edu.entity.vo.CourseInfoVo;
import com.yogurt.edu.entity.vo.CoursePublishVo;
import com.yogurt.edu.entity.vo.CourseQuery;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author yogurt
 * @since 2020-07-10
 */
public interface CourseService extends IService<Course> {

    //添加课程信息
    String addCourse(CourseInfoVo courseInfoVo);
    //根据课程id查询课程信息和描述信息
    CourseInfoVo findCourseById(String courseId);
    //修改课程和课程描述信息
    void updateCourseInfo(CourseInfoVo courseInfoVo);
    //根据课程id查询课程的基本信息(多表查询)
    CoursePublishVo getCoursePublishInfo(String courseId);
    //根据课程id删除课程
    void deleteById(String courseId);
}
